package com.enba.mallapi.module.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 菜单表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@TableName("t_menu")
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  private Long parentId;

  @ApiModelProperty("权限类型（0：目录 1：菜单 2：按钮）")
  private Integer type;

  @ApiModelProperty("菜单名称")
  private String menuName;

  @ApiModelProperty("权限码值")
  private String perms;

  @ApiModelProperty("排序")
  private Integer orderNum;

  @ApiModelProperty("菜单路径")
  private String url;

  @ApiModelProperty("图标")
  private String icon;

  @ApiModelProperty("状态（0：禁用 1：可用）")
  private Integer status;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;

  @ApiModelProperty("删除（0：未删除 1：已删除）")
  private Integer deleted;
}
